var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    if (!cm.isQuestActive(41209)) {
        cm.sendNormalTalk("（一只孤零零的猫。）", 2, 2450017, false, true);
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.sendNormalTalk("终于抓到你了，你这家伙！再也逃不掉了吧！", 2, 2450019, false, true)
        } else {
            if (status === a++) {
                cm.sendNormalTalk("喵喵~喵喵~", 0, 2450019, true, true)
            } else {
                if (status === a++) {
                    cm.sendNormalTalk("来，这次真的要回家了。家……你命还真好，至少还有个家。", 2, 2450019, true, true)
                } else {
                    if (status === a++) {
                        cm.forceStartQuest(41219, "3");
                        cm.updateInfoQuest(41209, "clear=clear");
                        cm.dispose()
                    }
                }
            }
        }
    }
};